﻿using System;
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;

namespace BGShell.PowerShell.Interop
{
    internal static class NativeMethods
    {
        #region shell32!SHGetFileInfoW

        [DllImport("shell32",
            SetLastError = true,
            ExactSpelling = true,
            CharSet = CharSet.Unicode
        )]
        internal static extern IntPtr SHGetFileInfoW(
            [In] String pszPath,
            [In] Int32 dwFileAttributes,
            [Out] SHFILEINFO lpfi,
            [In] Int32 cbFileInfo,
            [In] SHGetFileInfoFlags dwFlags);

        #endregion
    }
}
